//
//  TLConsumptionTableViewCell.m
//  WXReader
//
//  Created by huaya on 2025/3/22.
//  Copyright © 2025 Andrew. All rights reserved.
//

#import "TLConsumptionTableViewCell.h"

@interface TLConsumptionTableViewCell ()
@property (weak, nonatomic) IBOutlet UILabel *titleLab;
@property (weak, nonatomic) IBOutlet UILabel *contentLab;
@property (weak, nonatomic) IBOutlet UILabel *timeLab;
@property (weak, nonatomic) IBOutlet UILabel *coinLab;

@end

@implementation TLConsumptionTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(TLRechargeHistoryModel *)model{
    if (model) {
        _model = model;
        
        self.titleLab.text = model.worksName;
        self.contentLab.text = model.chapterName;
        
        self.timeLab.text = [NSDate convert2LocalTimeWithString:model.createTime andWithFormatter:@"yyyy-MM-dd HH:mm:ss"];
        
        self.coinLab.text = [NSString stringWithFormat:@"-%@ Coins",model.coinCost];
        
    }
}

@end
